<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>SHOP 管理中心 - 添加分类 </title>
<meta name="robots" content="noindex, nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<load href="__PUBLIC__/ADMIN/CSS/general.css" />
<load href="__PUBLIC__/ADMIN/CSS/main.css" />
</head>
<body>

<h1>
<span class="action-span"><a href="category.php?act=list">商品分类</a></span>
<span class="action-span1"><a href="index.php?act=main">SHOP 管理中心</a> </span><span id="search_id" class="action-span1"> - 添加分类 </span>
<div style="clear:both"></div>
</h1>
<!-- start add new category form -->
<div class="main-div">
  <form action="{:U('Admin/Cat/cat_edit')}" method="post" name="theForm" enctype="multipart/form-data" onsubmit="return validate()">
	 <table width="100%" id="general-table">
		<tbody>

			<tr>
				<td class="label">分名类称:</td>
				<td><input type="text" name="cat_name" maxlength="20" value="{$row.cat_name}" size="27"> <font color="red">*</font></td>
			</tr>
			<tr>
				<td class="label">上级分类:</td>
				<td>
					<select name="parent_id">
						<option value="$v">顶级分类</option>
						<?php foreach ($cattree as $key => $v) {
					
						 ?>
						<option value="<?php echo $v['cat_id'] ?>" <?php echo $v['cat_id']==$row['parent_id']?"selected":"" ?>><?php echo str_repeat('&nbsp', $v['lev']).$v['cat_name'] ?></option>

						<?php } ?> 
					</select>
				</td>
			</tr>
      <tr>
        <td class="label">分类描述:</td>
        <td>
          <textarea name="intro" rows="6" cols="48">{$row.intro}</textarea>
        </td>
      </tr>
      </tbody></table>
      <div class="button-div">
        <input type="submit" value=" 确定 ">
        <input type="reset" value=" 重置 ">
      </div>
    <!-- <input type="hidden" name="act" value="insert">
    <input type="hidden" name="old_cat_name" value=""> -->
    <input type="hidden" name="cat_id" value="{$row.cat_id}"><!--用来传cat_id -->
  </form>
  
</div>



<div id="footer">
	版权所有 &copy; 2012-2013 传智播客 - PHP培训 - 
</div>

</div>

</body>
</html>